<?php if (!defined("_ECRIRE_INC_VERSION")) return;
require_once(_DIR_PLUGIN_ECATALOGUE.'classes/class.CurrencyModel.php');
include_once(_DIR_PLUGIN_PDK.'functions/pdk_database.php'); 
function formulaires_ecatalogue_rubrique_currency_charger_dist($id_rubrique) {
	$valeurs = array();
    $currency_mdl = new CurrencyModel();        
    $rub_currency = $currency_mdl->GetCurrencyByIdRubrique($id_rubrique);
    
    $valeurs['id_currency'] = $rub_currency['id_currency']; 
    $valeurs['currencies'] = select_reference_to_array($currency_mdl->main_table, 
    $currency_mdl->primary_key, 'titre', null, array(), array(), 'titre');    
    //foreach ($valeurs['currencies'] as $key=>$titre) { $valeurs['currencies'][$key] = supprimer_numero($titre); }
    $valeurs['currencies'][0] = _T('ecatalogue:not_selected');     
    ksort($valeurs['currencies']);
    
	return $valeurs;
}
?>